<?php
	require("conexao.php");
	$id = $_GET['id'];
	$sql = "DELETE FROM contaspagarreceber WHERE idcontas = " . $id ;
	$sql2 ="DELETE FROM comprovantes WHERE idcontas = $id";
mysql_query ($sql2);
	
	if (!mysql_query($sql,$con))
  	  {
		  
  		die( "Erro: " . mysql_error());
  	  }else 
	  {	
	mysql_close($con);
	echo "ok";
	  }
?>